package com.dji.ux.sample.VirtualSticks;

public class VirtualStickData {
    private float dx;
    private float dy;
    private float mpitch;
    private float mroll;
    private float myaw;
    private float mthrottle;
    private String detectType;
    private String boxAreas;
    private int urgencyDirection = 1;

    public float getDx() { return dx; }

    public void setDx(float dx) { this.dx = dx; }

    public float getDy() { return dy; }

    public void setDy(float dy) { this.dy = dy; }

    public float getMroll() {
        return mroll;
    }

    public void setMroll(float mroll) {
        this.mroll = mroll;
    }

    public float getMpitch() {
        return mpitch;
    }

    public void setMpitch(float mpitch) {
        this.mpitch = mpitch;
    }

    public float getMyaw() {
        return myaw;
    }

    public void setMyaw(float myaw) {
        this.myaw = myaw;
    }

    public float getMthrottle() {
        return mthrottle;
    }

    public String getDetectType() {
        return detectType;
    }

    public String getBoxAreas() {
        return boxAreas;
    }

    public int getUrgencyDirection() {
        return urgencyDirection;
    }

    public String getStrDirection() {
        String strDirection = "";
        switch (this.getUrgencyDirection()){
            case 0:
                strDirection = "右";
                break;
            case 1:
                strDirection = "下";
                break;
            case 2:
                strDirection = "左";
                break;
            case 3:
                strDirection = "上";
                break;
        }
        return strDirection;
    }
}
